<?php
$z[0]=Array("global","",254,280);
$z[0][4]['name']="cfg_webname";
$z[1]=Array("global","",324,354);
$z[1][4]['name']="cfg_description";
$z[2]=Array("global","",391,418);
$z[2][4]['name']="cfg_keywords";
$z[3]=Array("global","",436,468);
$z[3][4]['name']="cfg_templets_skin";
$z[4]=Array("global","",552,584);
$z[4][4]['name']="cfg_templets_skin";
$z[5]=Array("global","",715,741);
$z[5][4]['name']="cfg_cmspath";
$z[6]=Array("global","",828,860);
$z[6][4]['name']="cfg_templets_skin";
$z[7]=Array("global","",948,973);
$z[7][4]['name']="cfg_cmsurl";
$z[8]=Array("global","",4394,4419);
$z[8][4]['name']="cfg_cmsurl";
$z[9]=Array("myad","",4918,4952);
$z[9][4]['name']="index_top_word";
$z[10]=Array("myad","",5228,5256);
$z[10][4]['name']="web_logo";
$z[11]=Array("myad","",5347,5382);
$z[11][4]['name']="index_top_right";
$z[12]=Array("global","",5564,5589);
$z[12][4]['name']="cfg_cmsurl";
$z[13]=Array("channel","\r\n			     <li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>\r\n			     ",5654,5924);
$z[13][4]['type']="top";
$z[13][4]['row']="10";
$z[13][4]['currentstyle']="<li ><a class='selected' href='~typelink~' ~rel~><span>~typename~</span></a></li>";
$z[14]=Array("field","\r\n        	\$t_arry = explode(\" > \",@me);\r\n        	if(count(\$t_arry) > 1) {\r\n        	    @me = \$t_arry[1] ;\r\n        	}else {\r\n        		@me; \r\n        	}\r\n          ",6483,6704);
$z[14][4]['name']="position";
$z[14][4]['runphp']="yes";
$z[15]=Array("php","\r\n						   // 查询数据库 返回列表 \r\n						   // 上海的十三个区\r\n						   // \$arear_arr=array(\"长宁区\" ,\"闸北区\" ,\"普陀区\" ,\"虹口区\",\"闵行区\",\"杨浦区\",\"宝山区\",\"浦东新区\",\"松江区\",\"嘉定区\",\"青浦区\",\"奉贤区\",\"金山区\",\"崇明县\" );\r\n\r\n						   \$arear_arr = array();\r\n						   \$areaSql = \"SELECT * FROM dede_sys_enum t WHERE t.egroup='area'\";\r\n						   \$areaQuery = mysql_query(\$areaSql);\r\n						   while(\$row = mysql_fetch_array(\$areaQuery,MYSQL_ASSOC)) {\r\n							      \$arear_arr[\$row[\"ename\"]] = \$row[\"ename\"];\r\n								  \r\n							}\r\n							\r\n							\$mysql = \"SELECT t1.id,t1.title,t2.area,t2.shopName,t2.address FROM dede_archives t1 LEFT JOIN dede_addon4sks t2 ON t1.id = t2.aid WHERE t2.typeid='12' AND  t2.sftjjxs = '是'\"; \r\n							\$query = mysql_query(\$mysql); \r\n							\$n=mysql_num_rows(\$query);\r\n							echo '<li id=\"menu0\"><a href=\"javascript:void(0)\" onclick=\"menuClick(\\'0\\')\"><strong>推荐经销商</strong>(<span>'.\$n.'</span>)</a></li>\r\n						          <div  id=\"subMenu0\"> ';\r\n							while(\$row = mysql_fetch_array(\$query,MYSQL_ASSOC)) {\r\n							      \$sName = \$row[\"shopName\"];\r\n							      if(strlen(\$sName) > 39) {\r\n								    \$sName =  mb_substr(\$row[\"shopName\"],0,13,'UTF-8').\"...\";\r\n								  }\r\n							      echo '<a  title=\"'.\$row[\"shopName\"].'\" target=\"_blank\" href=\"./view.php?aid='.\$row[\"id\"].'\" >'.\$sName.'</a></br>';\r\n								  \r\n							}\r\n							echo '</div>';\r\n							\r\n							\$mysql = \"SELECT t1.id,t1.title,t3.ename as area,t2.shopName,t2.address FROM dede_archives t1 LEFT JOIN dede_addon4sks t2 ON t1.id = t2.aid left join dede_sys_enum t3 on t2.area = t3.disorder  WHERE t3.egroup='area' and t2.typeid='12'\"; \r\n							\$query = mysql_query(\$mysql); \r\n							\r\n							\$area_index = 0;\r\n							foreach (\$arear_arr as \$value ) {\r\n							    \$area_index ++;\r\n								\$divStr = \"\";\r\n								\$totalCount = 0;\r\n								mysql_data_seek(\$query,0); // 移动指针到数组的开始\r\n								while(\$row = mysql_fetch_array(\$query,MYSQL_ASSOC)) {\r\n									  if(\$row[\"area\"] == \$value) {\r\n									  	  \$sName = \$row[\"shopName\"];\r\n										  if(strlen(\$sName) > 39) {\r\n											\$sName =  mb_substr(\$row[\"shopName\"],0,13,'UTF-8').\"...\";\r\n										  }\r\n										   \$divStr .= '<a title=\"'.\$row[\"shopName\"].'\" target=\"_blank\" href=\"./view.php?aid='.\$row[\"id\"].'\">'.\$sName.'</a></br>';\r\n										   \$totalCount ++;\r\n									  }\r\n								}\r\n								echo '<li id=\"menu'.\$area_index.'\"><a href=\"javascript:void(0)\" onclick=\"menuClick(\\''.\$area_index.'\\')\"><strong>'.\$value.'</strong>(<span>'.\$totalCount.'</span>)</a></li>\r\n									  <div style=\"display:none\" id=\"subMenu'.\$area_index.'\"> '\r\n										.\$divStr.\r\n									   '</div>';\r\n							}	\r\n\r\n						   mysql_close(\$con);\r\n\r\n						 ",7039,9830);
$z[16]=Array("myad","",9914,9951);
$z[16][4]['name']="item_bottom_right";
$z[17]=Array("infolink","\r\n            	<h1 class=\"mb8\"><span>4S快搜</span></h1>\r\n                <dl class=\"clearfix\"><!--过滤条件1-->\r\n                	<dt>按价格</dt>\r\n                    <dd class=\"clearfix\">\r\n                    	<ul class=\"clearfix\">\r\n                    		<li>[field:s4jg/]&nbsp;</li>\r\n                      </ul>\r\n                    </dd>\r\n                </dl>\r\n                <!--条件1结束-->\r\n                <dl class=\"clearfix\"><!--过滤条件2-->\r\n                	<dt>按品牌</dt>\r\n                    <dd class=\"clearfix\">\r\n                    	<ul class=\"clearfix\">\r\n                    		<li>[field:s4pp/]&nbsp;</li>\r\n                        </ul>\r\n                    </dd>\r\n                </dl>\r\n                <!--条件2结束-->\r\n                <dl class=\"clearfix\"><!--过滤条件3-->\r\n                	<dt>按区域</dt>\r\n                    <dd class=\"clearfix\">\r\n                    	<ul class=\"clearfix\">\r\n                    		<li>[field:area/]&nbsp;</li>\r\n                        </ul>\r\n                    </dd>\r\n                </dl>\r\n                <!--条件3结束-->\r\n                <dl class=\"clearfix\"><!--过滤条件4-->\r\n                	<dt>按级别</dt>\r\n                    <dd class=\"clearfix\">\r\n                    	 <ul class=\"clearfix\">\r\n                    		<li>[field:level/]&nbsp;</li>\r\n                       </ul>\r\n                    </dd>\r\n                </dl>\r\n                <!--条件4结束-->\r\n				",10156,11665);
$z[18]=Array("list","\r\n                          [field:global name='autoindex' runphp='yes']\r\n                          	if(@me%2 == 0){\r\n                          	 	@me = '<tr>';\r\n                          	} else {\r\n                          		@me = '<tr class=\"gray\">';\r\n                          	}\r\n                          [/field:global]\r\n                          <td><a  target=\"_blank\" href=\"[field:arcurl/]\"><strong>[field:shopname/]</strong></a></td>\r\n							 <td>[field:address/]</td>\r\n							 <td>[field:saleshotline/]</td>\r\n							 <td class=\"t_cen\">[field:mouthword/]</td>\r\n						   </tr>\r\n			            ",12084,12724);
$z[18][4]['pagesize']="10";
$z[19]=Array("pagelist","",12829,12900);
$z[19][4]['listitem']="info,index,pre,pageno,next,end";
$z[19][4]['listsize']="5";
$z[20]=Array("arclist","\r\n				         	<li><a href=\"[field:arcurl/]\">[field:title/]</a></li>\r\n				         ",13832,13980);
$z[20][4]['typeid']="20";
$z[20][4]['row']="50";
$z[20][4]['orderby']="pubdate";
$z[21]=Array("include","",14144,14190);
$z[21][4]['file']="./liqi/item_footer.htm";

?>